Skip to main content

DescribeCloudCenterInstances

Description

Call the DescribeCloudCenterInstances interface to query the asset information on the asset center page, such as the name of the asset instance and the region to which the asset instance belongs.

Request Method

POST

Request Path

/apsara/route/Sas/DescribeCloudCenterInstances

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
PageSizeBODYintegerNo20the maximum number of data displayed on each page during paging query.
CurrentPageBODYintegerNo1page number of the current page when paging query.
regionIdBODYstringYesNo sample value for this parameter.region id
MachineTypesBODYstringNoecsasset type. ecs: server cloud_product: cloud product
CriteriaBODYstringNo[{\"name\":\"riskStatus\",\"value\":\"YES\"},{\"name\":\"internetIp\",\"value\":\"1.2.\"}]search criteria. Example: instance ID/name, VPC ID, region, IP address, etc. Parameter format:{\" name\":" condition 1 name "," value ":" condition 1 value "},{" name ":" condition 2 name "," value ":" condition 2 value "},{},...
NoPageBODYbooleanNotruewhether to query by page. true: indicates paging query data false: indicates that no paging query data
LogicalExpBODYstringNoORThe logical relationship between multiple search conditions. OR: Indicates the relationship between multiple conditions that is "or" AND: indicates the relationship between multiple conditions is "and"
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
PageSizeinteger20displays the number of data pieces per page.
VulStatusstringYESwhether there is a vulnerability in the asset instance. YES: Yes NO: none
Ipstring1.2.3.4the public IP address of the asset instance.
Countinteger10the number of data displayed on the current page.
IntranetIpstring1.2.3.0the private IP address of the asset instance.
Successbooleantruerequest status of the result. true: the request was successful false: request failed
InternetIpstring1.2.3.4the public IP address of the asset instance.
RegionNamestringNorth China 1 (Qingdao)the name of the region to which the asset instance belongs.
StatusstringRunningthe boot status of the asset instance. Running: boot notRunning: shutdown
ClientStatusstringonlinewhether the client of the asset instance is online. online: online, indicates that the security status of the asset is on offline: offline, indicates that the security status of the asset is closed pause: pause, indicates that the security protection status of the asset is protection suspension
SafeEventCountinteger5Number of security alerts for asset instances.
OSstringLinuxthe operating system of the asset instance.
RequestIdstring32A73759-4C0F-4801-BE98-901223ACEE9Arequest ID of the result.
InstanceIdstringi-m5***asset instance ID.
OsNamestringCentOS 7.6 64 bitsthe kernel version of the asset instance.
HealthCheckCountinteger1number of baseline check problems for asset instances.
Flaginteger0whether the asset instance is owned by alibaba cloud. 0: alibaba cloud assets 1: non-alibaba cloud assets
RiskStatusstringNOwhether the asset instance is at risk. YES: Existence NO: No
GroupIdstring4120080the group ID of the asset instance.
VulCountinteger2number of vulnerabilities in asset instances.
InstancesarrayNo sample value for this parameter.asset details.
InstanceNamestringyztest-l***asset instance name.
AssetTypestringecsasset type.
PageInfoNo sample value for this parameter.page displays information.
TotalCountinteger50the total number of data.
Uuidstringc9107c04-942f-40c1-981a-f1c1***unique identification ID of the asset instance.
CurrentPageinteger1the page number of the current page.
AlarmStatusstringNOwhether the asset instance has a security alarm. YES: Yes NO: none
Regionstringcn-hangzhou-cm***-***the region of the asset instance.
VpcInstanceIdstringclassicthe VPC ID of the asset instance.
RegionIdstringcn-hanghzouthe region ID of the asset instance.
TagstringInternetIptag name of the asset instance.
HcStatusstringYESwhether the asset instance has a baseline problem. YES: Yes NO: none

Example

Successful Response example

{
"PageSize":"20",
"VulStatus":"YES",
"Ip":"1.2.3.4",
"Count":"10",
"IntranetIp":"1.2.3.0",
"Success":"true",
"InternetIp":"1.2.3.4",
"RegionName":"North China 1 (Qingdao)",
"Status":"Running",
"ClientStatus":"online",
"SafeEventCount":"5",
"OS":"Linux",
"RequestId":"32A73759-4C0F-4801-BE98-901223ACEE9A",
"InstanceId":"i-m5***",
"OsName":"CentOS 7.6 64 bits",
"HealthCheckCount":"1",
"Flag":"0",
"RiskStatus":"NO",
"GroupId":"4120080",
"VulCount":"2",
"Instances":"",
"InstanceName":"yztest-l***",
"AssetType":"ecs",
"PageInfo":"",
"TotalCount":"50",
"Uuid":"c9107c04-942f-40c1-981a-f1c1***",
"CurrentPage":"1",
"AlarmStatus":"NO",
"Region":"cn-hangzhou-cm***-***",
"VpcInstanceId":"classic",
"RegionId":"cn-hanghzou",
"Tag":"InternetIp",
"HcStatus":"YES"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}